package com.phone580.app;

import java.util.HashMap;
import java.util.Map;

import com.phone580.app.entity.LoginEntity;

import android.os.Environment;

public class CommonData {
	
	public static LoginEntity login;
	
	public static Map<String, Integer> notificationId = new HashMap<String, Integer>();
	
	public static String SDCARD = Environment.getExternalStorageDirectory().getPath();
	//下载应用保存位置
	public static String APP_PATH ;
	
	public static String DATA_PATH ;
	//是否采用wifi下载
	public static boolean ONLY_WIFI = false;
	
	public static boolean Notification = true;
	
	public static final String BASE_URL = "http://www.phone580.com:8082";
	//登录接口
	public static final String LOGIN_URL = BASE_URL + "/websamp/pubapi/mobile/login";
	//注册接口
	public static final String REG_URL = BASE_URL + "/websamp/pubapi/mobile/reg";
	//注销接口
	public static final String LOGOUT_URL = BASE_URL + "/websamp/pubapi/mobile/logout";
	
	public static void init() {
		APP_PATH = SDCARD + "/apphelper/";
		DATA_PATH = "file://" + APP_PATH + "data/" + "bak3/";
	}
}
